
#include "BCDataItem.hpp"
#include "PropertyDataItem.hpp"

namespace NSDatax {

	BCDataItem::BCDataItem() :
		NSCore::AbstractDataItem()
	{
		init();
	}

	BCDataItem::BCDataItem(QTreeWidget* tree) :
		NSCore::AbstractDataItem(tree)
	{
		init();
	}

	BCDataItem::BCDataItem(QTreeWidgetItem* view) :
		NSCore::AbstractDataItem(view)
	{
		init();
	}

	BCDataItem::~BCDataItem() {

	}

	void BCDataItem::init() { 
		setData(TreeField::FieldType, Qt::UserRole, TreeType::TypeBc);
		setData(TreeField::FieldRemovable, Qt::UserRole, true);

	}


	void BCDataItem::getPropertyTree(QTreeWidget* p_tree) {
		const auto top = new PropertyDataItem(p_tree);
		top->setIcon(0, icon(0));
		top->setText(0, text(0));
		top->setExpanded(true);
	

	}

}

